AMD/IOMMU: Don't opencode memcpy() in queue_iommu_command()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Sep 2018 10:16:21 +0000 (11:16 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Oct 2018 09:53:58 +0000 (10:53 +0100)
commit3ccfe3ca9ab89a4f879ac7a51d286bed64dfc83f
tree64384c4c9df01ade718b637cd23ad64caf67d593
parentd36b7704586c232388da8b170a111cc98127cdad
AMD/IOMMU: Don't opencode memcpy() in queue_iommu_command()

In practice, this allows the compiler to replace the loop with a pair of movs.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Brian Woods <brian.woods@amd.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/amd/iommu_cmd.c
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h